package org.jeecg.modules.flower.vo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.flower.entity.TFlowerTagIn2;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 批量入库表主表
 * @Author: jeecg-boot
 * @Date:   2022-07-22
 * @Version: V1.0
 */
@Data
@ApiModel(value="t_flower_tag_in_mainPage对象", description="批量入库表主表")
public class TFlowerTagInMain2Page2 {

	/**id*/
	@ApiModelProperty(value = "id")
	private String id;
	/**入库单号*/
	@Excel(name = "入库单号" ,needMerge = true)
	@ApiModelProperty(value = "入库单号")
	private String no;

	@Excel(name = "来源")
	@ApiModelProperty(value = "来源")
	private String ffrom;

	@Excel(name = "采摘人")
	@ApiModelProperty(value = "采摘人")
	private String frompeople;

	@Excel(name = "经销商")
	@ApiModelProperty(value = "经销商")
	private String sealer;

	/**来源基地*/
	@Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id" ,needMerge = true)
	@ApiModelProperty(value = "来源基地")
	@Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	private String sourceBase;
	/**来源大棚*/
	@Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id" ,needMerge = true)
	@ApiModelProperty(value = "来源大棚")
	@Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	private String sourceGreenhouse;
	/**库房*/
	@Excel(name = "库房", width = 15, dictTable = "flower_storehouse",dicText = "name",dicCode = "code" ,needMerge = true)
	@ApiModelProperty(value = "库房")
	@Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
	private String storehouse;
	/**成本中心*/
	@Excel(name = "成本中心", width = 15,dicCode = "ch_cost"  ,needMerge = true)
	@ApiModelProperty(value = "成本中心")
	@Dict(dicCode = "ch_cost" )
	private String cost;

	@Excel(name = "批次", width = 15, needMerge = true)
	@ApiModelProperty(value = "批次")
	private String productionId;

	/**成本中心*/
//	@Excel(name = "品种", width = 15,dictTable = "t_flower_variety_zz",dicText = "name",dicCode = "id" ,needMerge = true)
	@ApiModelProperty(value = "品种")
	@Dict( dictTable = "t_flower_variety_zz",dicText = "name",dicCode = "id")
	private String variety;


	/**分拣日期*/
	@Excel(name = "分拣日期", width = 15, format = "yyyy-MM-dd" ,needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "分拣日期")
	private Date sortTime;

	@Excel(name = "账期号", width = 15  ,needMerge = true  )
	@ApiModelProperty(value = "账期号")
	private String period;

	@Excel(name = "账期状态", width = 15 ,needMerge = true )
	@ApiModelProperty(value = "账期状态")
	private String periodState;

	@Excel(name = "基地负责人审批", width = 15  ,needMerge = true  )
	@ApiModelProperty(value = "基地负责人审批")
	private String baseCadre;

	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "基地负责人审批日期", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true )
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "基地负责人审批日期")
	private Date baseCadreTime;


	/**创建日期*/
	@Excel(name = "分拣日期", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**状态（0正常，1删除）*/
	@Excel(name = "状态（0正常，1删除）", width = 15,replace={"入库中_0","已入库_1","已删除_-2"})
	@ApiModelProperty(value = "状态（状态（0申请中，1已入库） -2删除 ）")
	private Integer state;

	@Excel(name = "入库方式", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "入库方式（扫码入库，手工入库）")
	private String inType;

	@ExcelCollection(name="入库子表")
	@ApiModelProperty(value = "入库子表")
	private String tFlowerTagIn2List;
	
}
